package Linux五种IO模型;

import java.util.concurrent.*;

/**
 * @author coderFu
 * @create 2022/3/5
 * 线程池配置
 */

public class ThreadPoolConfig {

    private static final ThreadPoolExecutor THREAD_POOL_EXECUTOR = new ThreadPoolExecutor(
            10,
            20,
            30L,
            TimeUnit.SECONDS,
            new ArrayBlockingQueue<>(30));

    public static ThreadPoolExecutor getThreadPool(){
        return THREAD_POOL_EXECUTOR;

    }


}
